<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.ProtocolProcessOverview"
    CodeFile="ProtocolProcessOverview.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ProtocolProcessOverview</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
		
			function ConfirmDelete()
			{
					try
					{
						
						var control = document.getElementsByName("deleteConfirmFlag");
						if (control != null)
						{
						    if ( confirm("Are you sure you want to delete this application?") )
						    {
								control(0).value = "True";
							}
						}			
					}
					catch(e)
					{
						document.write(e.message);
					}
			}
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <asp:Panel ID="headerSection" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server"></cc1:Header>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:HumansSubModuleNavigation ID="humansSubModNavigation" runat="server" Visible="false" />
                                    <cc1:AnimalsSubModuleNavigation ID="animalsSubModNavigation" runat="server" Visible="false" />
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table class="Invisible" cellspacing="10" id="dynamicTable">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <p>
                                    <asp:Label ID="IRinstructions" runat="server">Your responses helped create the following group of 
						relevant application forms. If these do not apply to your protocol, you can add or delete forms as 
						needed by clicking the 'Add/Delete Forms' button. To fill out a form, click on the linked name. 
						Complete the Forms, Staff & Access, and Attachments tabs before Submission.</asp:Label>
                                    <asp:Label ID="OtherInstructions" runat="server">To fill out a form, click on the linked name.  Complete Forms and Attachments tabs (if applicable) before Submission. </asp:Label>
                                    <asp:Label ID="AmendmentInstructions" runat="server">Your responses helped create the following group of relevant forms to modify.  
		If these do not apply to your amendment, you can add or delete forms by clicking on the Amendment link.  To modify a form, click the linked name.  Complete Forms, Staff & Access and Attachments tabs (if applicable) before Submission. </asp:Label></p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table cellspacing="0">
                        <tr>
                            <td align="center">
                                <input id="viewApplication" src="../Images/b_view_app.gif" type="image" value="View Application"
                                    onclick="window.open('ViewProtocolPage.aspx', 'Application', 'width=800, height=600, status=yes, toolbar=no, resizable=yes'); return false;"
                                    name="viewApplication" />
                            </td>
                            <td align="center">
                                <input id="viewFullApplication" src="../Images/b_viewfullapp.gif" type="image" value="View Full Application"
                                    onclick="window.open('ViewFullProtocolPage.aspx', 'Application', 'width=800, height=600, status=yes, toolbar=no, resizable=yes'); return false;" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="3">
                                <asp:Label ID="editProtocolInfoStatic" runat="server">
							<b>&nbsp;&nbsp;Edit: </b>
                                </asp:Label><asp:LinkButton ID="editProtocolInfo" runat="server" OnClick="OnEditProtocolClick"
                                    Text="Full title or Sponsor protocol designation/number"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:DataGrid ID="formsGrid" runat="server" CellSpacing="0" AllowCustomPaging="False"
                                    CssClass="DataGrid" AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False"
                                    Width="100%" OnDataBinding="OnDataBound">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                    <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                    <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                    <Columns>
                                        <asp:BoundColumn Visible="False" DataField="Id"></asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="QuestionnaireVersionId"></asp:BoundColumn>
                                        <asp:ButtonColumn DataTextField="Name" HeaderText="Form" CommandName="SelectForm"></asp:ButtonColumn>
                                        <asp:TemplateColumn HeaderText="Form Action" Visible="False">
                                            <ItemTemplate>
                                                <asp:RadioButtonList AutoPostBack="True" RepeatDirection="Horizontal" runat="server"
                                                    OnSelectedIndexChanged="OnFormActionChange" ID="formActionList">
                                                    <asp:ListItem Value="1">No Change</asp:ListItem>
                                                    <asp:ListItem Value="2">Edit</asp:ListItem>
                                                    <asp:ListItem Value="3">Remove</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn DataField="LastModifiedDate" ReadOnly="True" HeaderText="Last Modified">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="LastModifiedBy" ReadOnly="True" HeaderText="Modified By">
                                        </asp:BoundColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" valign="top">
                                &nbsp;<asp:ImageButton ID="addDeleteForms" runat="server" ImageUrl="../Images/b_add_delete_forms.gif"
                                    EnableViewState="False"></asp:ImageButton></td>
                            <td align="center" valign="top">
                                <asp:ImageButton ID="deleteApp" runat="server" ImageUrl="../Images/b_deleteapp.gif">
                                </asp:ImageButton></td>
                            <td align="center">
                                <div style="width: 150px; border: solid 2px #c36507" id="cloneControls" runat="server"
                                    visible="false">
                                    <asp:ImageButton ID="cloneProtocol" runat="server" ImageUrl="../Images/b_cloneprotocol.gif">
                                    </asp:ImageButton>
                                    <asp:CheckBoxList ID="cloneOptions" runat="server">
                                        <asp:ListItem Value="staff" Text="Include Staff" />
                                        <asp:ListItem Value="attachments" Text="Include Attachments" />
                                    </asp:CheckBoxList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
